package cn.wolfcode.rbac.query;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @version 1.0
 * @Author:Cao Zhijian
 * @DATE:2020/12/24 0024 21:38:42
 */

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class QueryObject {
    private Integer pageSize = 3;   // 每页显示的记录条数
    private Integer currentPage = 1;    // 当前页
    private String keyword;

    private Integer getStart(){
        return (currentPage - 1) * pageSize;
    }
}
